<template>
    <div id="root">
        <h2>这是child3</h2>
    </div>
</template>

<script>
    export default {
        name: "Child3",
        created() {
            console.log("这是child3组件的创建")
        },
        beforeDestroy() {
            console.log("这child3组件的即将被销毁")
        }
    }
</script>

<style scoped>
    #root{
        background-color: cornflowerblue;
        height: 200px;
    }
</style>